package com.suian.spring.bean;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Component
@Scope("singleton")
public class Playsingleton {
    public Playsingleton() {
        System.out.println("Playsingleton 的构造方法执行了");
    }

    public void playing() {
        System.out.println("单例模式打印");
    }

}
